﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace B1
{
    class Program
    {
        
        static void Main(string[] args)
        {
            int input=0;
            
            while (input <= 1)
            {
                Console.WriteLine("请输入大于1的整数数值:");
                input = Convert.ToInt32(Console.ReadLine());
            }
            Console.WriteLine("输入数值的素数有:");
            Console.Write("1");
            for (int i = 2; i <= input; i++)
            {
                int b = 0;
                b = input % i;
                if (b == 0)
                {
                    Console.Write(","+i);
                }
            }
            Console.ReadLine();
        }
    }
}
